package com.imeem.api.data;

import java.net.MalformedURLException;
import java.net.URL;

public class VideoData extends MediaData
{
   public static final String VIDEO_TYPE = "video";
   
   @Override
   public String getType()
   {
      return VideoData.VIDEO_TYPE;
   }
   
   private String _author;
   public String getAuthor() { return _author; }
   public void setAuthor(String author) { _author = author; }
   
   private String _description;
   public String getDescription() { return _description; }
   public void setDescription(String description) { _description = description; }
   
   private URL _videoEmbedUrl;
   public URL getVideoEmbedURL() { return _videoEmbedUrl; }
   public void setMusicEmbedURL(String url) throws MalformedURLException
   {
      _videoEmbedUrl = new URL(url);
   }
   
   private URL _previewImageUrl;
   public URL getPreviewImageUrl() { return _previewImageUrl; }
   public void setPreviewImageUrl(String url) throws MalformedURLException
   {
      _previewImageUrl = new URL(url);
   }
   
   private int _duration;
   public int getDuration() { return _duration; }
   public void setDuration(int duration) { _duration = duration; }
   
   private int _rating;
   public int getRating() { return _rating; }
   public void setRating(int rating) { _rating = rating; }
   
   private int _ratingCount;
   public int getRatingCount() { return _ratingCount; }
   public void setRatingCount(int count) { _ratingCount = count; }
   
   private int _height;
   public int getHeight() { return _height; }
   public void setHeight(int height) { _height = height; }
   
   private int _width;
   public int getWidth() { return _width; }
   public void setWidth(int width) { _width = width; }
}
